	<div class="column half fl">
		
		<div class="box themed_box">
		<h2 class="box-header"><?php echo $title.'-'.$type; ?></h2>

		<div class="box-content">
        <?php echo $this->session->flashdata('message'); ?>
		
   
        <form id="formtest" name="formtest" method="post" action="<?php echo site_url($form['action']); ?>">
            <?php if($table['value']<>"") { ?>
            <input type="hidden" name="id" value="<?php echo $table['value']['id']; ?>" />
            <?php } ?>
            <label class="form-label required"><?php echo $this->lang->line('cust_name'); ?></label>
			<input id="form-no" class="form-field width60" name="name" type="text"  value="<?php if($table['value']<>"") { echo $table['value']['customer_name']; } ?> " maxlength="50"/>
            
            <?php if(($this->session->userdata('user_group')== $this->config->item('admin_dna')) || ($this->session->userdata('user_group')== $this->config->item('co_admin_dna'))):?>
            <label class="form-label"><?php echo $this->lang->line('pic').' ('.$this->lang->line('users').')'; ?></label>
			<input id="form-" class="form-field width20" name="rev" type="text" value="<?php if($table['value']<>"") { echo $table['value']['rev2']; } ?>" maxlength="100"/>
			 <div id="box-con" class="dialog" title="<?php echo $this->lang->line('users'); ?>">
			    <table class="display" id="tabledata">
	<thead>
		<tr>
			<th><?php echo $this->lang->line('user_no');?></th>
			<th><?php echo $this->lang->line('user_name');?></th>
			<th><?php echo $this->lang->line('user_call');?></th>
			<th><?php echo $this->lang->line('user_group');?></th>
			<th><?php echo $this->lang->line('user_pos');?></th>
            <th></th>
		</tr>
	</thead>
	<tbody>
	<?php foreach($table['users'] as $rec): ?>
		<tr class="gradeX">

			<td><?php echo $rec['user_no'] ?></a></td>
			<td><?php echo $rec['name'] ?></td>
			<td><?php echo $rec['username'] ?></td>
			<td class="center"><?php echo $rec['group_name'] ?></td>
			<td class="center"><?php echo $rec['pos_name'] ?></td>
            <td><a class="button themed closer" href="#" onclick="changeBgr('<?php echo $rec['username'];?>')" ><?php echo $this->lang->line('add_list'); ?></a></td>
		</tr>
	<?php endforeach;?>	
	</tbody>
	</table>
                <p class="fr">
				<a class="button white">cancel</a>
				<a class="button themed closer">ok</a>
				</p>

            </div>
            <a  class="button themed opener"><?php echo $this->lang->line('search_user') ?></a>
            <?php else:  ?>
                <input id="form-" class="form-field width20" name="rev" type="hidden" value="<?php if($table['value']<>"") { echo $table['value']['rev2']; } ?>" maxlength="100"/>
            <?php endif; ?>
			
			<label class="form-label"> <?php echo $this->lang->line('type');?></label>
			<p class="radiocheck">
            <?php if($type<>"Individual"): ?>
			<input id="dateformat_eu" type="radio" value="Corporate"  name="type" <?php if($table['value']<>"") { if($table['value']['type']=='Corporate') { echo 'checked="checked"';  }  } else{ echo 'checked="checked"'; } ?> />
			<label for="dateformat_eu">Corporate</label>
	        <?php endif; ?> 
            
            <?php if($type=="Individual"): ?> 
			<input id="dateformat_am" type="radio" value="Individual" name="type" <?php if($table['value']<>"") { if($table['value']['type']=='Individual') { echo 'checked="checked"';  }  } else{ echo 'checked="checked"'; } ?> />
			<label for="dateformat_am">Individual</label>
            <?php endif; ?> 
			</p>
            
            
            <?php if($type<>"Individual"): ?>
            <label class="form-label"><?php echo $this->lang->line('sector'); ?></label>
            <select class="form-field width60" id="select" name="sector" title="Select a category">
                    <option value="<?php if($table['value']<>"") { echo $table['value']['sector_id']; } ?>" ><?php if($table['value']<>"") { echo $table['value']['sector_name']; } ?></option>
    			<?php foreach($table['sectors'] as $rowsector): ?>
                    <option value="<?php echo $rowsector['id']; ?>"><?php echo $rowsector['sector_name']; ?></option>
                <?php endforeach;?>
            </select>
            <?php else:?>
            <input type="hidden" name="sector" id="sector" value="0" />
            <?php endif; ?> 
            
            
            
            <br />
            <label class="form-label"><?php echo $this->lang->line('group'); ?></label>
            <select  class="form-field width60" id="select" name="group" title="Select a category">
                    <option value="<?php if($table['value']<>"") { echo $table['value']['group_id']; } ?>" ><?php if($table['value']<>"") { echo $table['value']['group_name']; } ?></option>
    				<?php foreach($table['groups'] as $rowgroup): ?>
                    <?php if($type=="Individual"): ?>
                    <?php if($rowgroup['group_type']=="Individual"):?>
                    <option value="<?php echo $rowgroup['id']; ?>"><?php echo $rowgroup['group_name']; ?></option>
                    <?php endif;?>
                    <?php else:?>
                    <?php if($rowgroup['group_type']=="Corporate"):?>
                    <option value="<?php echo $rowgroup['id']; ?>"><?php echo $rowgroup['group_name']; ?></option>
                    <?php endif;?>
                    <?php endif; ?> 
                    <?php endforeach;?>
            </select>
            <br />
            
            
            <label class="form-label"><?php echo $this->lang->line('source'); ?></label>
            <select class="form-field width60" id="select" name="source" title="Select a category">
                    <option value="<?php if($table['value']<>"") { echo $table['value']['source_id']; } ?>" ><?php if($table['value']<>"") { echo $table['value']['source_name']; } ?></option>
    			<?php foreach($table['sources'] as $rowsource): ?>
                    <option value="<?php echo $rowsource['id']; ?>"><?php echo $rowsource['source_name']; ?></option>
                <?php endforeach;?>
            </select>
            
            <?php if($type<>"Individual"): ?>
            <br />
            <label class="form-label"><?php echo $this->lang->line('status'); ?></label>
            <select  class="form-field width60" id="select" name="status" title="Select a category">
                    <option value="<?php if($table['value']<>"") { echo $table['value']['status_id']; } ?>" ><?php if($table['value']<>"") { echo $table['value']['status_name']; } ?></option>
    			
    				<?php foreach($table['status'] as $rowstatus): ?>
                    <option value="<?php echo $rowstatus['id']; ?>"><?php echo $rowstatus['status_name']; ?></option>
					<?php endforeach;?>
            </select>
            <br />
            <?php else:?>
            <input type="hidden" name="status" id="status" value="0" />
            <?php endif; ?> 
            
			<label class="form-label required"><?php echo $this->lang->line('pic'); ?></label>
			<input id="form-pic" class="form-field width60" name="pic" type="text" value="<?php if($table['value']<>"") { echo $table['value']['pic']; } ?>" maxlength="100"/>
			
            <label class="form-label required"><?php echo $this->lang->line('pos'); ?></label>
			<input id="form-picpos" class="form-field width60" name="pic_pos" type="text" value="<?php if($table['value']<>"") { echo $table['value']['pic_pos']; } ?>" maxlength="100"/>
			
            <label class="form-label required"><?php echo $this->lang->line('pic').'2'; ?></label>
			<input id="form-pic2" class="form-field width60" name="pic2" type="text" value="<?php if($table['value']<>"") { echo $table['value']['pic2']; } ?>" maxlength="100"/>
			
            <label class="form-label required"><?php echo $this->lang->line('pos'); ?></label>
			<input id="form-picpos" class="form-field width60" name="pic2_pos" type="text" value="<?php if($table['value']<>"") { echo $table['value']['pic2_pos']; } ?>" maxlength="100"/>
			
            <label class="form-label required"><?php echo $this->lang->line('tlp'); ?></label>
			<input id="form-tlp" class="form-field width60" name="tlp" type="text" value="<?php if($table['value']<>"") { echo $table['value']['tlp']; } ?>" maxlength="100"/>
			
            <label class="form-label required"><?php echo $this->lang->line('fax'); ?></label>
			<input id="form-fax" class="form-field width60" name="fax" type="text" value="<?php if($table['value']<>"") { echo $table['value']['fax']; } ?>" maxlength="100"/>
			
            
			<label class="form-label"><?php echo $this->lang->line('email'); ?></label>
			<input id="form-email" class="form-field width60" name="email" type="text" value="<?php if($table['value']<>"") { echo $table['value']['email']; } ?>" maxlength="100"/>
			
			<label class="form-label"><?php echo $this->lang->line('con_email'); ?></label>
			<input id="form-confirmemail" class="form-field width60" name="email_confirm" type="text" value="<?php if($table['value']<>"") { echo $table['value']['email']; } ?>" maxlength="100"/>
            
			<label class="form-label"><?php echo $this->lang->line('address'); ?></label>
			<input id="form-address" class="form-field width60" name="address" type="text" value="<?php if($table['value']<>"") { echo $table['value']['address']; } ?>" maxlength="100"/>
			
            
           	<label class="form-label"><?php echo $this->lang->line('city'); ?></label>
			<input id="form-city" class="form-field width60" name="city" type="text" value="<?php if($table['value']<>"") { echo $table['value']['city']; } ?>" maxlength="100"/>
            
            <label class="form-label"><?php echo $this->lang->line('zipcode'); ?></label>
			<input id="form-zip" class="form-field width60" name="zipcode" type="text" value="<?php if($table['value']<>"") { echo $table['value']['zip_code']; } ?>" maxlength="50"/>
			
            <label class="form-label"><?php echo $this->lang->line('desc'); ?></label>
			<textarea id="form-message" class="form-field width90" name="desc" cols="" rows="2"><?php if($table['value']<>"") { echo $table['value']['desc']; } ?></textarea>
			
            
            
			<input id="reset" class="button red" type="button" value="Reset" name="reset" />
			<input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('save');?>" name="save" />
		</form>
		</div>

		</div>	
			
	</div>

	
	<div class="column half fr">
        <?php if($type<>"Individual"): ?>
		<div class="box themed_box">
		<h2 class="box-header-new"></h2>
		<h2 class="box-header"><?php echo $this->lang->line('sector'); ?></h2>
			
			<div class="box-content box-table">
			
            <?php echo $this->session->flashdata('message2'); ?>
            
			<table class="tablebox">
				<thead class="table-header">
					<tr>
						<th><?php echo $this->lang->line('sector'); ?></th>
						<th><?php echo $this->lang->line('status'); ?></th>
						<th class="tc"></th>
					</tr>
				</thead>
				
				<tbody class="openable-tbody">
                    <?php $i=1; ?>
					<?php foreach($table['sectors'] as $rec): ?>
                    <?php if($i % 2 == 0): 
                            $zebra="odd";
                          else: 
                            $zebra="even";
                          endif;
                    ?>
                    <tr class="<?php echo $zebra;?>">
						<td class="width80">
							<h5><?php echo $rec['sector_name']; ?></h5>
		
						</td>
						<td class="tc">

							<span class="bullet bullet-green"></span>
						</td>
                        <?php if(($this->session->userdata('user_group')== $this->config->item('admin')) || ($this->session->userdata('user_group')== $this->config->item('co_admin'))):?>
						<td class="tc">
						<a class="button themed openable"><span class="icon_single extend"></span></a>
                        <?php endif;?>
						</td>
					</tr>
                    
					<tr class="odd openable-tr">
						<?php echo form_open($this->config->item('sect_update')); ?>
                        <td colspan="4">
							<div class="fl typo">
							<b><?php $this->config->item('sector'); ?></b>
							<p class="p_justify">
                              <input id="form-id" name="id" type="hidden" value="<?php echo $rec['id']; ?>" />
							  <input id="form-name" class="form-field width150" name="name" type="text" value="<?php echo $rec['sector_name']; ?>" maxlength="200"/>
							</p>
							</div>

							<div class="fl typo">
								<b>Published by: </b>
								<a href="#"><?php echo $rec['user_stamp']; ?></a> 
							</div>

							
							<div class="s_3"></div>
							
							<div class="fl typo">
								<b>Published date: </b>
                                <?php if($rec['date_stamp']=='0000-00-00'): ?>
                                    -
                                <?php else: ?>
								<a href="#"><?php echo $rec['date_stamp']; ?></a>
                                <?php endif; ?> 
							</div>
						
							<div class="fr">
								 <input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('delete');?>" name="delete" />
								 <input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('save');?>" name="save" />
							</div>
						<?php echo form_close();?>
						<div class="clear"></div>
						</td>
					</tr>
                    <?php $i++; endforeach;?>
					
                    <tr>
						<td class="width80">
                          <?php if(($this->session->userdata('user_group')== $this->config->item('admin')) || ($this->session->userdata('user_group')== $this->config->item('co_admin'))):?>
							<h5><?php echo $this->lang->line('add'); ?></h5>
		                  <?php endif; ?>
						</td>
						<td class="tc">

							
						</td>
						<td class="tc">
                        <?php if(($this->session->userdata('user_group')== $this->config->item('admin')) || ($this->session->userdata('user_group')== $this->config->item('co_admin'))):?>
						<a class="button themed openable"><span class="icon_single extend"></span></a>
                        <?php endif;?>
						</td>
					</tr>
                    
					<tr class="odd openable-tr">
						<td colspan="4">
                        <?php echo form_open($this->config->item('sect_save')); ?>
							<div class="fl typo">
							<b><?php $this->config->item('pos'); ?></b>
							<p class="p_justify">
							  <input id="form-name" class="form-field width150" name="name" type="text" value="" maxlength="200"/>
							</p>
							</div>

							<div class="s_3"></div>
							
												
							<div class="fr">
								<input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('save');?>" name="save" />
							</div>
						
						<div class="clear"></div>
                        <?php echo form_close();?>
						</td>
					</tr>
                    
				</tbody>
			</table>
            <!--
				<ul class="pagination">
				<li><a class="button white" href="#">previous</a></li>

				<li><a class="button white" href="#">1</a></li>
				<li><a class="button white" href="#">2</a></li>
				<li><a class="button white active" href="#">3</a></li>
				<li><a class="button white" href="#">4</a></li>
				<li><a class="button white" href="#">5</a></li>
				<li><a class="button white" href="#">6</a></li>

				<li><a class="button white" href="#">next</a></li>
				</ul>
              -->  
			</div>
		</div>
        <?php endif;?>
        
        <?php if($type<>"Individual"): ?>
        <div class="box themed_box">
		<h2 class="box-header-new"></h2>
		<h2 class="box-header"><?php echo $this->lang->line('group'); ?></h2>
			
			<div class="box-content box-table">
			
            <?php echo $this->session->flashdata('message3'); ?>
            
			<table class="tablebox">
				<thead class="table-header">
					<tr>
						<th><?php echo $this->lang->line('group'); ?></th>
						<th><?php echo $this->lang->line('status'); ?></th>
						<th class="tc"></th>
					</tr>
				</thead>
				
				<tbody class="openable-tbody">
                    <?php $i=1; ?>
					<?php foreach($table['groups'] as $rec): ?>
                    <?php if($i % 2 == 0): 
                            $zebra="odd";
                          else: 
                            $zebra="even";
                          endif;
                    ?>
                    <tr class="<?php echo $zebra;?>">
						<td class="width80">
							<h5><?php echo $rec['group_name']; ?></h5>
		
						</td>
						<td class="tc">

							<span class="bullet bullet-green"></span>
						</td>
						<td class="tc">
                        <?php if(($this->session->userdata('user_group')== $this->config->item('admin')) || ($this->session->userdata('user_group')== $this->config->item('co_admin'))):?>
						<a class="button themed openable"><span class="icon_single extend"></span></a>
                        <?php endif;?>
						</td>
					</tr>
                    
					<tr class="odd openable-tr">
						<?php echo form_open($this->config->item('group_update')); ?>
                        <td colspan="4">
							<div class="fl typo">
							<b><?php $this->config->item('sector'); ?></b>
							<p class="p_justify">
                              <input id="form-id" name="id" type="hidden" value="<?php echo $rec['id']; ?>" />
							  <input id="form-name" class="form-field width150" name="name" type="text" value="<?php echo $rec['group_name']; ?>" maxlength="200"/>
							</p>
							</div>

							<div class="fl typo">
								<b>Published by: </b>
								<a href="#"><?php echo $rec['user_stamp']; ?></a> 
							</div>

							
							<div class="s_3"></div>
							
							<div class="fl typo">
								<b>Published date: </b>
                                <?php if($rec['date_stamp']=='0000-00-00'): ?>
                                    -
                                <?php else: ?>
								<a href="#"><?php echo $rec['date_stamp']; ?></a>
                                <?php endif; ?> 
							</div>
						
							<div class="fr">
								 <input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('delete');?>" name="delete" />
								 <input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('save');?>" name="save" />
							</div>
						<?php echo form_close();?>
						<div class="clear"></div>
						</td>
					</tr>
                    <?php $i++; endforeach;?>
					
                    <tr>
						<td class="width80">
                         <?php if(($this->session->userdata('user_group')== $this->config->item('admin')) || ($this->session->userdata('user_group')== $this->config->item('co_admin'))):?>
							<h5><?php echo $this->lang->line('add'); ?></h5>
		                 <?php endif;?> 
						</td>
						<td class="tc">

							
						</td>
						<td class="tc">
                        <?php if(($this->session->userdata('user_group')== $this->config->item('admin')) || ($this->session->userdata('user_group')== $this->config->item('co_admin'))):?>
						<a class="button themed openable"><span class="icon_single extend"></span></a>
                        <?php endif;?>
						</td>
					</tr>
                    
					<tr class="odd openable-tr">
						<td colspan="4">
                        <?php echo form_open($this->config->item('group_save')); ?>
							<div class="fl typo">
							<b><?php $this->config->item('group'); ?></b>
							<p class="p_justify">
							  <input id="form-name" class="form-field width150" name="name" type="text" value="" maxlength="200"/>
							</p>
							</div>

							<div class="s_3"></div>
							
												
							<div class="fr">
								<input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('save');?>" name="save" />
							</div>
						
						<div class="clear"></div>
                        <?php echo form_close();?>
						</td>
					</tr>
                    
				</tbody>
			</table>
            <!--
				<ul class="pagination">
				<li><a class="button white" href="#">previous</a></li>

				<li><a class="button white" href="#">1</a></li>
				<li><a class="button white" href="#">2</a></li>
				<li><a class="button white active" href="#">3</a></li>
				<li><a class="button white" href="#">4</a></li>
				<li><a class="button white" href="#">5</a></li>
				<li><a class="button white" href="#">6</a></li>

				<li><a class="button white" href="#">next</a></li>
				</ul>
              -->  
			</div>
		</div>
        <?php endif;?>
        
        <div class="box themed_box">
		<h2 class="box-header-new"></h2>
		<h2 class="box-header"><?php echo $this->lang->line('source'); ?></h2>
			
			<div class="box-content box-table">
			
            <?php echo $this->session->flashdata('message4'); ?>
            
			<table class="tablebox">
				<thead class="table-header">
					<tr>
						<th><?php echo $this->lang->line('source'); ?></th>
						<th><?php echo $this->lang->line('status'); ?></th>
						<th class="tc"></th>
					</tr>
				</thead>
				
				<tbody class="openable-tbody">
                    <?php $i=1; ?>
					<?php foreach($table['sources'] as $rec): ?>
                    <?php if($i % 2 == 0): 
                            $zebra="odd";
                          else: 
                            $zebra="even";
                          endif;
                    ?>
                    <tr class="<?php echo $zebra;?>">
						<td class="width80">
							<h5><?php echo $rec['source_name']; ?></h5>
		
						</td>
						<td class="tc">

							<span class="bullet bullet-green"></span>
						</td>
						<td class="tc">
                        <?php if(($this->session->userdata('user_group')== $this->config->item('admin')) || ($this->session->userdata('user_group')== $this->config->item('co_admin'))):?>
						<a class="button themed openable"><span class="icon_single extend"></span></a>
                        <?php endif;?>
						</td>
					</tr>
                    
					<tr class="odd openable-tr">
						<?php echo form_open($this->config->item('source_update')); ?>
                        <td colspan="4">
							<div class="fl typo">
							<b><?php $this->config->item('source'); ?></b>
							<p class="p_justify">
                              <input id="form-id" name="id" type="hidden" value="<?php echo $rec['id']; ?>" />
							  <input id="form-name" class="form-field width150" name="name" type="text" value="<?php echo $rec['source_name']; ?>" maxlength="200"/>
							</p>
							</div>

							<div class="fl typo">
								<b>Published by: </b>
								<a href="#"><?php echo $rec['user_stamp']; ?></a> 
							</div>

							
							<div class="s_3"></div>
							
							<div class="fl typo">
								<b>Published date: </b>
                                <?php if($rec['date_stamp']=='0000-00-00'): ?>
                                    -
                                <?php else: ?>
								<a href="#"><?php echo $rec['date_stamp']; ?></a>
                                <?php endif; ?> 
							</div>
						
							<div class="fr">
								 <input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('delete');?>" name="delete" />
								 <input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('save');?>" name="save" />
							</div>
						<?php echo form_close();?>
						<div class="clear"></div>
						</td>
					</tr>
                    <?php $i++; endforeach;?>
					
                    <tr>
						<td class="width80">
                         <?php if(($this->session->userdata('user_group')== $this->config->item('admin')) || ($this->session->userdata('user_group')== $this->config->item('co_admin'))):?>
							<h5><?php echo $this->lang->line('add'); ?></h5>
		                 <?php endif;?> 
						</td>
						<td class="tc">

							
						</td>
						<td class="tc">
                        <?php if(($this->session->userdata('user_group')== $this->config->item('admin')) || ($this->session->userdata('user_group')== $this->config->item('co_admin'))):?>
						<a class="button themed openable"><span class="icon_single extend"></span></a>
                        <?php endif;?>
						</td>
					</tr>
                    
					<tr class="odd openable-tr">
						<td colspan="4">
                        <?php echo form_open($this->config->item('source_save')); ?>
							<div class="fl typo">
							<b><?php $this->config->item('source'); ?></b>
							<p class="p_justify">
							  <input id="form-name" class="form-field width150" name="name" type="text" value="" maxlength="200"/>
							</p>
							</div>

							<div class="s_3"></div>
							
												
							<div class="fr">
								<input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('save');?>" name="save" />
							</div>
						
						<div class="clear"></div>
                        <?php echo form_close();?>
						</td>
					</tr>
                    
				</tbody>
			</table>
            <!--
				<ul class="pagination">
				<li><a class="button white" href="#">previous</a></li>

				<li><a class="button white" href="#">1</a></li>
				<li><a class="button white" href="#">2</a></li>
				<li><a class="button white active" href="#">3</a></li>
				<li><a class="button white" href="#">4</a></li>
				<li><a class="button white" href="#">5</a></li>
				<li><a class="button white" href="#">6</a></li>

				<li><a class="button white" href="#">next</a></li>
				</ul>
              -->  
			</div>
		</div>
        
        <?php if($type<>"Individual"): ?>
        <div class="box themed_box">
		<h2 class="box-header-new"></h2>
		<h2 class="box-header"><?php echo $this->lang->line('status'); ?></h2>
			
			<div class="box-content box-table">
			
            <?php echo $this->session->flashdata('message5'); ?>
            
			<table class="tablebox">
				<thead class="table-header">
					<tr>
						<th><?php echo $this->lang->line('status'); ?></th>
						<th><?php echo $this->lang->line('status'); ?></th>
						<th class="tc"></th>
					</tr>
				</thead>
				
				<tbody class="openable-tbody">
                    <?php $i=1; ?>
					<?php foreach($table['status'] as $rec): ?>
                    <?php if($i % 2 == 0): 
                            $zebra="odd";
                          else: 
                            $zebra="even";
                          endif;
                    ?>
                    <tr class="<?php echo $zebra;?>">
						<td class="width80">
							<h5><?php echo $rec['status_name']; ?></h5>
		
						</td>
						<td class="tc">

							<span class="bullet bullet-green"></span>
						</td>
						<td class="tc">
                        <?php if(($this->session->userdata('user_group')== $this->config->item('admin')) || ($this->session->userdata('user_group')== $this->config->item('co_admin'))):?>
						<a class="button themed openable"><span class="icon_single extend"></span></a>
                        <?php endif;?>
						</td>
					</tr>
                    
					<tr class="odd openable-tr">
						<?php echo form_open($this->config->item('status_update')); ?>
                        <td colspan="4">
							<div class="fl typo">
							<b><?php $this->config->item('status'); ?></b>
							<p class="p_justify">
                              <input id="form-id" name="id" type="hidden" value="<?php echo $rec['id']; ?>" />
							  <input id="form-name" class="form-field width150" name="name" type="text" value="<?php echo $rec['status_name']; ?>" maxlength="200"/>
							</p>
							</div>

							<div class="fl typo">
								<b>Published by: </b>
								<a href="#"><?php echo $rec['user_stamp']; ?></a> 
							</div>

							
							<div class="s_3"></div>
							
							<div class="fl typo">
								<b>Published date: </b>
                                <?php if($rec['date_stamp']=='0000-00-00'): ?>
                                    -
                                <?php else: ?>
								<a href="#"><?php echo $rec['date_stamp']; ?></a>
                                <?php endif; ?> 
							</div>
						
							<div class="fr">
								 <input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('delete');?>" name="delete" />
								 <input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('save');?>" name="save" />
							</div>
						<?php echo form_close();?>
						<div class="clear"></div>
						</td>
					</tr>
                    <?php $i++; endforeach;?>
					
                    <tr>
						<td class="width80">
                         <?php if(($this->session->userdata('user_group')== $this->config->item('admin')) || ($this->session->userdata('user_group')== $this->config->item('co_admin'))):?>
							<h5><?php echo $this->lang->line('add'); ?></h5>
                        <?php endif;?>
						</td>
						<td class="tc">

							
						</td>
						<td class="tc">
                        <?php if(($this->session->userdata('user_group')== $this->config->item('admin')) || ($this->session->userdata('user_group')== $this->config->item('co_admin'))):?>
						  <a class="button themed openable"><span class="icon_single extend"></span></a>
                        <?php endif;?>  
						</td>
					</tr>
                    
					<tr class="odd openable-tr">
						<td colspan="4">
                        <?php echo form_open($this->config->item('status_save')); ?>
							<div class="fl typo">
							<b><?php $this->config->item('pos'); ?></b>
							<p class="p_justify">
							  <input id="form-name" class="form-field width150" name="name" type="text" value="" maxlength="200"/>
							</p>
							</div>

							<div class="s_3"></div>
							
												
							<div class="fr">
								<input id="validate" class="button themed" type="submit" value="<?php echo $this->lang->line('save');?>" name="save" />
							</div>
						
						<div class="clear"></div>
                        <?php echo form_close();?>
						</td>
					</tr>
                    
				</tbody>
			</table>
            <!--
				<ul class="pagination">
				<li><a class="button white" href="#">previous</a></li>

				<li><a class="button white" href="#">1</a></li>
				<li><a class="button white" href="#">2</a></li>
				<li><a class="button white active" href="#">3</a></li>
				<li><a class="button white" href="#">4</a></li>
				<li><a class="button white" href="#">5</a></li>
				<li><a class="button white" href="#">6</a></li>

				<li><a class="button white" href="#">next</a></li>
				</ul>
              -->  
			</div>
		</div>
        <?php endif;?>
        			
	</div>
    
<script type="text/javascript">
    function changeBgr(isi) {
    document.formtest.rev.value = isi;
    document.getElementById('box-con').style.display = 'none';
    } 
</script>  